package com.glsc.ngateway.common.base.domainmapper.cmdb;
import com.glsc.ngateway.common.base.domain.mysql.cmdb.CmdbCpuStandard;
import com.glsc.ngateway.common.base.domain.mysql.gateway.platform.flow.cmdb.FlowFormNewCPUStandardDetail;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: zhengyr
 * @Desc: 流程表到业务表转换
 */
@Mapper(componentModel = "spring")
public interface FlowFormNewCpuStandardMapper {

    FlowFormNewCpuStandardMapper INSTANCE = Mappers.getMapper(FlowFormNewCpuStandardMapper.class);

    @Mapping(target = "cpuStandardCode", ignore = true)
    @Mapping(target = "isDelete", ignore = true)
    CmdbCpuStandard dto2domain(FlowFormNewCPUStandardDetail dto);

    List<CmdbCpuStandard> dto2domain(List<FlowFormNewCPUStandardDetail> dto);
}
